Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Initializing the Appearance Manager /


UnregisterAppearanceClient

NEW WITH THE APPEARANCE MANAGER

Makes your application non-Appearance-compliant and turns off the mapping of standard pre-Appearance definition functions to their Appearance-compliant equivalents.

pascal OSStatus UnregisterAppearanceClient (void);
function result
A result code. The result code appearanceProcessNotRegisteredErr indicates that your process was not registered when you called the UnregisterAppearanceClient function. For a list of other result codes, see "Result Codes".
DISCUSSION
The UnregisterAppearanceClient function is automatically called for you when your application terminates. Normally this function does not need to be called. You might want to call this function if you are running a plug-in architecture, and you know that a given plug-in isn't Appearance compliant. In this case you would bracket your use of the plug-in with calls to UnregisterAppearanceClient (before the plug-in is used) and RegisterAppearanceClient (after the plug-in is used), so that Appearance is turned off for the duration of the plug-in's usage.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998